package util;

import java.net.UnknownHostException;

import com.mongodb.BasicDBObject;
import com.mongodb.DBCollection;
import com.mongodb.WriteConcern;

public class DataUtil {

	public static void createData(DBCollection collection, int count) 
			throws UnknownHostException
	{
		for (int i = 0; i < count; i++) {
			BasicDBObject student = new BasicDBObject("name", "student" + i);
			collection.insert(student, WriteConcern.UNACKNOWLEDGED);
		}
	}
}
